package com.hcms.mybatis.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 栏目管理
 * </p>
 *
 * @author achenxw@126.com
 * @since 2023-03-31
 */
@Getter
@Setter
@TableName("cms_cate")
@ApiModel(value = "CmsCate对象", description = "栏目管理")
public class CmsCate implements Serializable {

    private static final long serialVersionUID = 1L;

    public static final Integer STATUS_DISABLE = 0;
    public static final Integer STATUS_ENABLE = 1;

    @ApiModelProperty("编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("栏目名称")
    private String cateName;

    @ApiModelProperty("英文名称")
    private String enName;

    @ApiModelProperty("栏目目录")
    private String cateFolder;

    @ApiModelProperty("上级栏目")
    private Long parentId;

    @ApiModelProperty("ID层级关系")
    private String idList;

    @ApiModelProperty("所属模块")
    private Long moduleId;

    @ApiModelProperty("外部链接")
    private String url;

    @ApiModelProperty("栏目图片")
    private String image;

    @ApiModelProperty("ICO图片")
    private String icoImage;

    @ApiModelProperty("SEO标题")
    private String title;

    @ApiModelProperty("SEO关键字")
    private String keywords;

    @ApiModelProperty("SEO描述")
    private String description;

    @ApiModelProperty("简介")
    private String summary;

    @ApiModelProperty("列表模板")
    private String templateList;

    @ApiModelProperty("详情模版")
    private String templateShow;

    @ApiModelProperty("分页条数")
    private Integer pageSize;

    @ApiModelProperty("导航状态")
    private Integer isMenu;

    @ApiModelProperty("跳转下级")
    private Integer isNext;

    @ApiModelProperty("新窗口打开")
    private Integer isBlank;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("状态")
    private Integer status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date updateTime;


}
